<?php
namespace Home\Controller;
use Think\Controller;
class UController extends CommonController {
    public function index(){
        var_dump($_GET['id']);
        $id = I('get.id');

		//取出用户表的数据 二维数组
		$sql = "select * from user where id='{$id}'";

		$personal = M()->query($sql);
		//var_dump($res);exit;
		$Utitle = current($personal);  //供个人主页的title使用

		//var_dump($personal);exit;

		$this->assign('personal',$personal);

        $this->assign('title',$Utitle['nickname'].'个人主页'); //分配动态的title，对应的是'个人主页'

        $this->display();
    }
}

?>